package com.springstudy.mybatisplus.controller;

import com.springstudy.mybatisplus.api.CareerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenrongrong
 * @since 2020/3/6 15:27
 */
@RestController
@RequestMapping("career")
public class CareerController {

    @Autowired
    CareerService service;

    @PostMapping("unionList")
    public Object unionList() {
        return service.getListWithPerson();
    }
}
